package com.dayuanit.dy16.atm.controller;

import com.dayuanit.dy16.atm.vo.ForgetPwdRequestVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController extends BaseController {

    @RequestMapping("/card/toDeposit")
    public String toDeposit() {
        return "deposit";
    }

    @RequestMapping("/user/toSignUp")
    public String toSignUp() {
        return "sign-up";
    }

    @RequestMapping("/user/toLogin")
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/card/toFlow")
    public String toFlow() {
        return "flow";
    }

    @RequestMapping("/card/toOpenaccount")
    public String toOpenaccount() {
        return "openaccount";
    }

    @RequestMapping("/card/toTransfer")
    public String toTransfer() {
        return "transfer";
    }

    @RequestMapping("/user/toHome")
    public String toHome() {
        return "index";
    }

    @RequestMapping("/user/toEmailBind")
    public String toEmailBind() {
        return "bindEmail";
    }

    @RequestMapping("/user/toChangePwd")
    public String toChangePwd(ForgetPwdRequestVO forgetPwdRequestVO) {
        httpSession.setAttribute("forgetPwdRequestVO", forgetPwdRequestVO);
        return "changePwd";
    }

    @RequestMapping("/user/toForgetPwd")
    public String toForgetPwd() {
        return "forgetPwd";
    }

    @RequestMapping("/user/toMessage")
    public String toForgetoMessagetPwd() {
        return "message2";
    }

    @RequestMapping("/user/toVoice")
    public String toVoice() {
        return "voice";
    }

    @RequestMapping("/wx/toWxBind")
    public String toWxBind() {
        return "wxBind";
    }
}
